package com.bdqn.qnnews.wemedia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-26
 * @description 频道信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("wm_channel")
@Schema(name = "WmChannel 对象", description = "频道信息表 实体类")
public class WmChannel {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "频道名称")
    private String name;

    @Schema(description = "频道描述")
    private String description;

    @Schema(description = "是否默认频道")
    @TableField("is_default")
    private Boolean isDefault;

    private Boolean status;

    @Schema(description = "默认排序")
    private Byte ord;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;


}
